<div ng-controller="KanjiaCtrl" ng-init="infoAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/kanjia/list">{{'砍价'| translate}}</a></li>
        <li class="active">
            {{"统计"|translate}}
        </li>
    </ul>
    <h3> 砍价活动效果统计:</h3>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'发起砍价人数'|translate}}</th>
                <th>{{'引来砍价人数'|translate}}</th>
                <th>{{'砍掉总金额'|translate}}</th>
                <th>{{'带来的流量比例'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>{{total_bargain.total_bargain_activity}}</td>
                <td>{{total_bargain.total_bargain_times}}</td>
                <td>{{total_bargain.total_bargain_fee}}</td>
                <td>{{(total_bargain.total_bargain_times/total_bargain.total_bargain_activity).toFixed(1)}}</td>
            </tr>
        </tbody>
    </table>
    <h3>砍价活动列表:</h3>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'用户微信'|translate}}</th>
                <th>{{'当前总共拉人砍价的次数'|translate}}</th>
                <th>{{'当前总共砍掉的金额'|translate}}</th>
                <th>{{'活动二维码'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(key, value) in bargain_activitys">
                <td>{{key+1}}</td>
                <td>
                    <wxinfo ng-model="value.open_id" type="1"></wxinfo>
                </td>
                <td>{{value.total_bargain_times}}</td>
                <td>{{value.total_cut_off_fee}}</td>
                <td>
                    <wx-qrcode stype="stype" id="list.bargain_rule_id"></wx-qrcode>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="page_Size" total="total_count" get-data="infoGet(pageNo)"></pager>
</div>